<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <c:set var="ctx" value="${pageContext.request.contextPath }"></c:set>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<title>华阳物流管理平台</title>
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/css/combo.select.css">
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/css/public.css"/>	
		<link href="<%=request.getContextPath()%>/resources/css/foundation-datepicker.css" rel="stylesheet" type="text/css">
		<script src="<%=request.getContextPath()%>/resources/js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="<%=request.getContextPath()%>/resources/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="<%=request.getContextPath()%>/resources/js/foundation-datepicker.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/resources/js/up14/ajaxfileupload.js"   charset="utf-8"></script>
		<script src="<%=request.getContextPath()%>/resources/js/sinlar.js" type="text/javascript" charset="utf-8"></script>	
		<script src="<%=request.getContextPath()%>/resources/js/jquery.combo.select.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body class="huayang">
		<header class="clearfix">
			<a class="navbar-brand d-inline logo2" href="#"><img src="<%=request.getContextPath()%>/resources/img/logo.png"></a>
			<a class="navbar-brand d-inline logo3" href="#"><img src="<%=request.getContextPath()%>/resources/img/1.png"></a>
		</header>
		<div class="clearfix">
			
		</div>
        <nav class="navbar navbar-expand-lg navbar-light bg-light">
            <!--<a class="navbar-brand" href="#">华阳物流</a>-->
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
              <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="navbarSupportedContent">
           	
              <ul class="navbar-nav mr-auto">
              	<div class="container">       	
            	<div class="row clearfix">
              	<li class="nav-item active col-xs-6">
                  <a class="nav-link nav1" href="${ctx }/department/chengCity?deptid=${deptid}&&rolename=${role.rolename}"><span></span></a>
                </li>
                <li class="nav-item active col-xs-6">
                  <a class="nav-link nav2" href="${ctx }/department/mianCity?deptid=${deptid}&&rolename=${role.rolename}"><span></span></a>
                </li>
                <li class="nav-item active col-xs-6">
                  <a class="nav-link nav6" href="${ctx }/department/mianCity?deptid=${deptid}&&rolename=${role.rolename}"><span></span></a>
                </li>
                <li class="nav-item active col-xs-6">
                  <a class="nav-link nav3" href="${ctx }/after/showAfter?pageNow=1&&deptid=${deptid}&&rolename=${role.rolename}"><span></span></a>
                </li>
                <li class="nav-item active col-xs-6 current">
                  <a class="nav-link nav4" href="${ctx }/accountlist/selectAccountList?deptid=${deptid}&&rolename=${role.rolename}&deptname=&zhiling=&chexing=&xingming=&jiesuan=&jiashiyuanjs=&fatime1=&fatime2="><span></span></a>
                </li>
                <li class="nav-item active col-xs-6">
                  <a class="nav-link nav5" href="${ctx }/back/guanli?deptid=${deptid}&&rolename=${role.rolename}"><span></span></a>
                </li>
               </div>
              </div>
              </ul>
            <div class="clearfix"></div>
            <ul class="nav justify-content-center fixed-top align-middle clearfix ">
			  <li class="nav-item">
                <img class="user-img rounded-circle" src="<%=request.getContextPath()%>/resources/img/raw_1514434504.jpg"/>  
              </li>
              <li class="nav-item user-info">
                <span   id="dengjiName"  >${user.uname}</span>    
                <span>${role.rolename}</span> 
              </li>
              <li class="nav-item pwd-change">
                <a class="nav-link active align-text-bottom" href="${ctx }/tuser/pwdjsp?deptid=${deptid}">修改密码</a>                
              </li>
             <li class="nav-item exit"> 
              	<a href="${ctx }/back/userLoginOut" onclick="return confirm('您确定要退出系统吗？');" class="nav-link active"><span class="px-3">
					<img src="<%=request.getContextPath()%>/resources/img/exit.png"></span>退出</a>     
              </li>
            </ul>
          </div>       
        </nav>	
        <div class="container-fluid content">
        	<div class="row">
        		
        			<div class="container-fluid pl-4 ">
        				
        				<div class="pt-xl-4 px-4 py-3 col-12 col-sm-12 col-lg-9 col-xl-10 clearfix">
        					<div class="col-md-12 column clearfix account_list pr-5">
                                <div class="title text-center float-right">
				                	<a href="${ctx }/waybills/huiZong?orderby=wInsurance" class="btn btn-block">
					                	<span>保险</span>
				                	</a>
			                	</div>
                                <div class="title text-center float-right">
				                	<a href="${ctx }/waybills/huiZong?orderby=wProfit" class="btn btn-block">
					                	<span>利润</span>
				                	</a>
			                	</div>
                                <div class="title text-center float-right">
				                	<a href="${ctx }/waybills/huiZong?orderby=wEstimatedTime" class="btn btn-block">
					                	<span>到达时间</span>
				                	</a>
			                	</div>
			                	<div class="title text-center float-right">
				                	<a href="${ctx }/waybills/huiZong?orderby=wDepartureTime" class="btn btn-block">
					                	<span>发车时间</span>
				                	</a>
			                	</div>
                                                      
		                	<!--<a href="after-sales_edit.html"><span>新增售后</span></a>-->
		                </div>
        				</div>
        				<div class="row pt-xl-4  col-12 col-sm-10">
        				   <div id="printDIV" class="col-md-12 column table-content table-responsive">
        				   	<form id="frm">
		                	<table id="val" class="table text-center table-hover" style="min-width: 2150px;overflow-x: scroll;">
		                		<thead>
								
		                			<tr>
						                <th>
							                ID
						                </th>
						                <th style="min-width:85px;">
							                                所属部门
						                </th>
						                <th style="min-width:70px;">
							                                目的地
						                </th>
						                <th style="min-width:85px;">
							                                发车司机
						                </th>
						                <th style="min-width:85px;">
							                              指令号
						                </th>
						                <th>
							                              车架号
						                </th>
						                <th style="min-width:55px;">
							                                车型
						                </th>
						                <th>
							                              驱数
						                </th>
						                <th style="width:110px;">
							                              事故状态
						                </th>
						                <th style="width:110px;">
							                              运达状态
						                </th>
						                
						                <th width="130">
							                              发车时间
						                </th>
						                <th width="130">
							                              到达时间
						                </th>
						               
						                <th style="min-width:85px;">
							                              厂家结算
						                </th>
						                <th style="min-width:100px;">
							                              驾驶员结算
						                </th>
						                <th style="min-width:100px;">
							                              保险金额
						                </th>
						                <th style="min-width:100px;">
							                              商业险金额
						                </th>
						                <th style="min-width:85px;">
							                              强险金额
						                </th>
						                <th style="min-width:85px;">
							                              临牌结算
						                </th>
						                 <th>
							                             利润
						                </th>
					                </tr>
									
				                </thead>
				                <tbody>
				                	<c:forEach var="aclist" items="${accoutlist }">
					                <tr align="center" valign="middle">
						                <td>
							               ${aclist.wId }
						                </td>
						                <td>
							                           ${aclist.deptName }
						                </td>
						                
						                <td>
							                              ${aclist.wBourn }
						                </td>
						                <td>
							                             ${aclist.wTransport }
						                </td>
						                <td>
							                            ${aclist.wInstruct }
						                </td>
						                <td>
							                            ${aclist.wVehicle }
						                </td>
						                <td>
							                              ${aclist.wVIN }
						                </td>
						                
						                
						                <td>
							                       ${aclist.wActuate } 
						                </td>
						                
						                <td>
						                	${aclist.wState }
						                </td>
						                 <td>
						                	${aclist.wDelivery }
						                </td>
						                
						               
						                
						                <td>
							                    <fmt:formatDate value="${aclist.wDepartureTime }" pattern="yyyy-MM-dd     HH:mm"/>
						                </td>
						                
						                <td>
							                    <fmt:formatDate value="${aclist.wEstimatedTime }" pattern="yyyy-MM-dd     HH:mm"/>
						                </td>
						               
						                <td>
							                             ${aclist.wFactory }
						                </td>
						                <td>
							                           ${aclist.wPilot }
						                </td>
						                <td>
							                           ${aclist.wInsurance }
						                </td>
						                
						                <td>
						                		${aclist.wCommercial }
						                </td>
						                <td>
							                    ${aclist.wCoerce }
						                </td>
						                <td>
							                             ${aclist.wAmount }
						                </td>
										 <td>
							                             ${aclist.wProfit }
						                </td>
						                
					                </tr>
					                   </c:forEach>
				                </tbody>
			                </table>
			                </form>
			                
		                </div>		 
        				</div>
        					<div class="row pt-xl-4  col-12 col-sm-10 clearfix">
        				<div class="col-md-12 column table-content table-responsive pagination-block">
		                <div class="col-md-4 column col-center-block text-center">
		                	<ul class="pagination">
	                           <!-- <li><a href="#">首页</a></li>
	                            <li><a href="#">上一页</a></li>
	                            <li><a href="#">下一页</a></li>
	                            <li><a href="#">末页</a></li>
	                            <li><a>共5页48条</a></li> -->
                            </ul>
		                </div>
		                
		                <input type="hidden" id="page" value="${page.pageNow}">
		               				 <!-- 分页功能 start -->
									<div id="pagediv" align="center">
									 <a href="${ctx }/waybills/huiZong?orderby=wId">首页</a>
										<c:choose>
											<c:when test="${page.pageNow - 1 > 0}">
												<a href="${ctx }/waybills/huiZong?orderby=${orderby }&page=${page.pageNow - 1}">上一页</a>
											</c:when>
											<c:when test="${page.pageNow - 1 <= 0}">
												<a href="${ctx }/waybills/huiZong?orderby=${orderby }&page=1">上一页</a>
											</c:when>
										</c:choose>
										<c:choose>
											<c:when test="${page.totalPageCount==0}">
												<a href="${ctx }/waybills/huiZong?orderby=${orderby }&page=${page.pageNow}">下一页</a>
											</c:when>
											<c:when test="${page.pageNow + 1 < page.totalPageCount}">
												<a href="${ctx }/waybills/huiZong?orderby=${orderby }&page=${page.pageNow + 1}">下一页</a>
											</c:when>
											<c:when test="${page.pageNow + 1 >= page.totalPageCount}">
												<a href="${ctx }/waybills/huiZong?orderby=${orderby }&page=${page.totalPageCount}">下一页</a>
											</c:when>
										</c:choose>
										<c:choose>
											<c:when test="${page.totalPageCount==0}">
												<a href="${ctx }/waybills/huiZong?orderby=${orderby }&page=${page.pageNow}">末页</a>
											</c:when>
											<c:otherwise>
												<a href="${ctx }/waybills/huiZong?orderby=${orderby }&page=${page.totalPageCount}">末页</a>
											</c:otherwise>
										</c:choose>
										  <a>共${page.totalPageCount}页${page.totalCount}条</a><input id="tzBtn" type="button" value="跳转" style="float:right;"><input id="tzText" type="number" min="1" max="${page.totalPageCount}" value="${page.pageNow }"  style="width:60px;float:right;"/>
									</div>
									<!-- 分页功能 End -->
		                </div>
        				</div>
        			</div>
        		</div>
        	</div>
        	
        	<!--推送消息-->
        	
        		<jsp:include page="munetab.jsp" />
        	  
		</body>
	<script type="text/javascript">
		$('.timepick').fdatepicker({
			format: 'yyyy-mm-dd',
			pickTime: 0,
		});
	</script>	
	<script type="text/javascript">
	$(function() {
	    $("#xingming").comboSelect();
	});
	//先判断时间后判断别的
	/* function checkTime(){
		var fatime1 = $("#fatime1").val();
		var fatime2 = $("#fatime2").val();
		if(fatime1==""||fatime2==""){
			alert("请先选择发车时间");
			$("#zhiling").attr("readonly","true");
			$("#chexing").attr("readonly","true");
			$("#deptname").attr("readonly","true");
			$("#xingming").attr("readonly","true");
			$("#jiesuan").attr("readonly","true");
			$("#jiashiyuanjs").attr("readonly","true");
		}else{
			$("#zhiling").removeAttr("readonly");
			$("#chexing").removeAttr("readonly");
			$("#deptname").removeAttr("readonly");
			$("#xingming").removeAttr("readonly");
			$("#jiesuan").removeAttr("readonly");
			$("#jiashiyuanjs").removeAttr("readonly");
		}
	} */
	</script>	
<script type="text/javascript">
	$(function(){
	         	var page = $("#page").val();
				if(page == "" || page == null || page == undefined){
					$("#pagediv").hide();//隐藏
				}
	         
	   });
</script>
<script type="text/javascript">
		$("#qxqx").click(function(){
			if($("#qxqx").attr("value")=="全选"){
				$("input[name='checkbox']").attr("checked","true");
				$("#qxqx").attr("value","取消");
			}else{
				$("input[name='checkbox']").removeAttr("checked"); 
				$("#qxqx").attr("value","全选");
			}
		})
		$("#sub1").click(function(){
			var s = $("input[name='checkbox']:checked");
			var sl = s.length;
			if(sl>0){
				$.ajax({
					   url : '<%=basePath%>waybills/ajaxChangshangjiesuanshi',
					   data:$('#frm').serialize(),
				       type : 'post',
					   dataType : 'json',
					   success : function(data) {
						if(data!=null){
							   lujing=data.result;
							   if(lujing==1){
							   		alert('标记成功。');
							   		s.each(function(){
							   			var ix = $(this).attr("value");
								   		$("#imgFieldJie"+ix).replaceWith("<td>已结算</tb>");
							   		 });
							   }
							   if(lujing==0){
							   		alert('标记失败。');  
							   }
						}else{
								alert('网络错误，请稍后重试。');
						}
					},
					error : function(data, status, e) {
					}
				})
				return false;
			}else{
				alert("请至少选择一条数据");
			}
		})
		$("#tzBtn").click(function(){
		var p = $("#tzText").val();
		if(p>${page.totalPageCount}){
			alert("请输入正确页码");
		}else{
			window.location.href="${ctx }/waybills/huiZong?orderby=${orderby }&page="+p;
		}
	})
	</script>
<script type="text/javascript">
 	/* var dengjiName=   document.getElementById("dengjiName").innerText; ; */
	function ajaxChangshangjiesuanshi(index) {
		 $.ajax({
			   url : '<%=basePath%>waybills/ajaxChangshangjiesuanshi',
			   data:{index1: index,},
		       type : 'post',
			   dataType : 'json',
			   async : false,
			   success : function(data) {
				if(data!=null){
					   lujing=data.result;
					   if(lujing==1){
					   		alert('标记成功。');
					   		  $("#imgFieldJie"+index).replaceWith("<td>已结算</tb>");  
					   }
					   if(lujing==0){
					   		alert('标记失败。');  
					   }
				}else{
						alert('网络错误，请稍后重试。');
				}
			},
			error : function(data, status, e) {
			}
		})
		return false;
	}
	
	function ajaxFileUpload(index) {
		 $.ajaxFileUpload({
			url : '<%=basePath%>upload345?uname='+index,
			secureuri : false,
			fileElementId : 'fileToUpload'+index,
			dataType : 'json',
			success : function(data) {
				if(data!=null){
					   lujing=data.msg;
					   alert('文件上传成功。');
					   $("#resultField"+index).replaceWith("<td>已结算</tb>");
					    /* $("#dengjirenField"+index).replaceWith("<td>"+dengjiName+"</tb>"); */
					   $("#imgFieldIn"+index).hide();
					   $("#imgFieldOut"+index).append("<img src="+data.msg+">");
				}else{
						alert('上传失败，请重新选择文件。');
				}
			},
			error : function(data, status, e) {
				//alert('上传失败，请重新选择文件。');
			}
		})
	//	alert('上传成功。');
		return false;
	}
	
	
//上传图片
$(".file").on("change","input[type='file']",function(){
    var filePath=$(this).val();
    if(filePath.indexOf("jpg")!=-1 || filePath.indexOf("png")!=-1){
//      $(".file").html("").hide();
        var arr=filePath.split('\\');
        var fileName=arr[arr.length-1];
        $(this).siblings(".input-txt").html(fileName);
    }else{
        $(this).siblings(".input-txt").html("");
        $(this).siblings(".input-txt").html("文件类型有误！").show();
        return false; 
    }
})
</script>
	<!-- 打印表格 -->
	<script type="text/javascript" language="javascript">
	function method5(tableid) {
		var str = document.getElementById("printDIV").innerHTML;
		var printWin=window.open("打印窗口", "_blank");
		printWin.document.write(str );
		printWin.document.close();
		printWin.print();
		printWin.close();
		}
	</script>
	<!-- 导出表格 -->
	<script type="text/javascript" language="javascript">
        var idTmr;
        function  getExplorer() {
            var explorer = window.navigator.userAgent ;
            //ie 
            if (explorer.indexOf("MSIE") >= 0) {
                return 'ie';
            }
            //firefox 
            else if (explorer.indexOf("Firefox") >= 0) {
                return 'Firefox';
            }
            //Chrome
            else if(explorer.indexOf("Chrome") >= 0){
                return 'Chrome';
            }
            //Opera
            else if(explorer.indexOf("Opera") >= 0){
                return 'Opera';
            }
            //Safari
            else if(explorer.indexOf("Safari") >= 0){
                return 'Safari';
            }
        }
        function method1(tableid) {//整个表格拷贝到EXCEL中
            if(getExplorer()=='ie')
            {
                var curTbl = document.getElementById(tableid);
                var oXL = new ActiveXObject("Excel.Application");

                //创建AX对象excel 
                var oWB = oXL.Workbooks.Add();
                //获取workbook对象 
                var xlsheet = oWB.Worksheets(1);
                //激活当前sheet 
                var sel = document.body.createTextRange();
                sel.moveToElementText(curTbl);
                //把表格中的内容移到TextRange中 
                sel.select;
                //全选TextRange中内容 
                sel.execCommand("Copy");
                //复制TextRange中内容  
                xlsheet.Paste();
                //粘贴到活动的EXCEL中       
                oXL.Visible = true;
                //设置excel可见属性

                try {
                    var fname = oXL.Application.GetSaveAsFilename("Excel.xls", "Excel Spreadsheets (*.xls), *.xls");
                } catch (e) {
                    print("Nested catch caught " + e);
                } finally {
                    oWB.SaveAs(fname);

                    oWB.Close(savechanges = false);
                    //xls.visible = false;
                    oXL.Quit();
                    oXL = null;
                    //结束excel进程，退出完成
                    //window.setInterval("Cleanup();",1);
                    idTmr = window.setInterval("Cleanup();", 1);

                }

            }
            else
            {
                tableToExcel("val")
            }
        }
        function Cleanup() {
            window.clearInterval(idTmr);
            CollectGarbage();
        }
        var tableToExcel = (function() {
              var uri = 'data:application/vnd.ms-excel;base64,',
              template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>',
                base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) },
                format = function(s, c) {
                    return s.replace(/{(\w+)}/g,
                    function(m, p) { return c[p]; }) }
                return function(table, name) {
                if (!table.nodeType) table = document.getElementById(table)
                var ctx = {worksheet: name || 'Worksheet', table: table.innerHTML}
                window.location.href = uri + base64(format(template, ctx))
              }
            })()
    </script>
	<!-- <script type="text/javascript">
	alert("导出表格")
		//打印表格  
		var idTmr;  
		function getExplorer() {  
			var explorer = window.navigator.userAgent;  
			alert("explorer:"+explorer)
			//ie    
			if (explorer.indexOf("MSIE") >= 0) {  
				alert("aaa:")
				return "ie";  
			}  
			//firefox    
			else if (explorer.indexOf("Firefox") >= 0) {  
				alert("b:")
				return "Firefox";  
			}  
			//Chrome    
			else if (explorer.indexOf("Chrome") >= 0) {  
				alert("c:")
				return "Chrome";  
			}  
			//Opera    
			else if (explorer.indexOf("Opera") >= 0) {  
				alert("d:")
				return "Opera";  
			}  
			//Safari    
			else if (explorer.indexOf("Safari") >= 0) {  
				alert("e:")
				return "Safari";  
			}  
		}  
		function method2(tableid) {  //整个表格拷贝到EXCEL中
			alert("method2")
			if (getExplorer() == "ie") {  
				var curTbl = document.getElementById(tableid);  
				alert("curTbl:"+curTbl);
				var oXL = new ActiveXObject("Excel.Application"); 
				alert("oXL:"+oXL);
				//创建AX对象excel 
				var oWB = oXL.Workbooks.Add();  
				alert("oWB:"+oWB);
				 //获取workbook对象 
				var xlsheet = oWB.Worksheets(1);  
				alert("xlsheet:"+xlsheet)
				//激活当前sheet
				var sel = document.body.createTextRange(); 
				alert("sel:"+sel)
				sel.moveToElementText(curTbl);  
				//把表格中的内容移到TextRange中 
				sel.select();  
				//全选TextRange中内容 
				sel.execCommand("Copy");  
				 //复制TextRange中内容  
				xlsheet.Paste();  
				//粘贴到活动的EXCEL中  
				oXL.Visible = true; 
				//设置excel可见属性
			try {  
				alert("fname:"+fname)
				var fname = oXL.Application.GetSaveAsFilename("Excel.xls",  
				"Excel Spreadsheets (*.xls), *.xls");  
				
			} catch (e) {  
				alert("*******:")
				print("Nested catch caught " + e);  
			} finally {
				alert("finally");
				oWB.SaveAs(fname);  
				oWB.Close(savechanges = false);  
				 //xls.visible = false;
				oXL.Quit();  
				oXL = null;  
				 //结束excel进程，退出完成
                //window.setInterval("Cleanup();",1);
				idTmr = window.setInterval("Cleanup();", 1);  
				}  
			  
				} else {
					
					alert("else");
					tableToExcel(tableid)  
				}  
			}  
			function Cleanup() { 
				alert("**Cleanup****:"+Cleanup)
				window.clearInterval(idTmr);  
				CollectGarbage();  
			}  
			var tableToExcel = (function() {  
			var uri = 'data:application/vnd.ms-excel;base64,', template = '<html><head><meta charset="UTF-8"></head><body><table  border="1">{table}</table></body></html>', base64 = function(  
			s) {  
				return window.btoa(unescape(encodeURIComponent(s)))}, format = function(s, c) {  
				return s.replace(/{(\w+)}/g, function(m, p) {  
			return c[p];  
			})  
			}  
				return function(table, name) {  
				if (!table.nodeType)  
				table = document.getElementById(table)  
				var ctx = {  
				worksheet : name || 'Worksheet',  
				table : table.innerHTML  
			}  
				window.location.href = uri + base64(format(template, ctx))  
			}  
				
		})()  
	</script>   -->
		<script type="text/javascript"> 
		   window.onload=function(){ 
				var action ='<%=request.getAttribute("result")%>';
				if(action.length!==4)
				{
						alert(action);
				}
			} 
			
			
			$(".table-hover td").each(function(index) {
			        var jiesuan = document.getElementById("jiesuan");
			        if(jiesuan == '已结算'){
						 $(this).removeClass("unread");
						alert(jiesuan);
					}
			          
			      })
			
			
			
		</script>  
		<script language="javascript">
	        //防止页面后退
	        history.pushState(null, null, document.URL);
	        window.addEventListener('popstate', function () {
	            history.pushState(null, null, document.URL);
	        });
		</script>
</html>

